import request from '@/utils/request'

// 查询assets列表
export function listAssets(query) {
  return request({
    url: '/assets/list',
    method: 'get',
    params: query
  })
}

// 查询assets详细
export function getAssets(userNo, currency) {
  return request({
    url: '/assets/' + userNo + "/" + currency,
    method: 'get'
  })
}

// 新增assets
export function addAssets(data) {
  return request({
    url: '/assets',
    method: 'post',
    data: data
  })
}

// 修改assets
export function updateAssets(data) {
  return request({
    url: '/assets',
    method: 'put',
    data: data
  })
}

// 删除assets
export function delAssets(userNo) {
  return request({
    url: '/assets/' + userNo,
    method: 'delete'
  })
}
